<script setup lang="ts">
import { onMounted, ref } from "vue";

const aaa = ref();

function ss() {
  aaa.value.executeJavaScript(`

  `);
}

// onMounted(() => {
//   aaa.value.openDevTools();
// });
</script>

<template>
  <div class="indexPage">
    <webview
      ref="aaa"
      src="https://www.leyifan.com/admin/ticketplus/package_receive_new_memari"
      :style="{
        width: '100vw',
        height: `calc( 100vh - 230px)`,
      }"
    ></webview>
    <button @click="ss">注入js</button>
  </div>
</template>

<style lang="scss" scoped>
.indexPage {
}
</style>
